<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'company-setting-form',
    'enableAjaxValidation'=>false,
)); ?>

<p class="note"><?php echo Yii::t('site','Fields with {marker} are required.',array('{marker}'=>'<span class="required">*</span>')); ?></p>

    <?php echo $form->errorSummary($model); ?>

    <?php if(Yii::app()->getRequest()->getParam('CompanySetting_page')) echo CHtml::hiddenField('CompanySetting_page',Yii::app()->getRequest()->getParam('CompanySetting_page')); ?>
    <div class="row">
        <?php echo $form->labelEx($model,'userId'); ?>
        <?php echo $form->textField($model,'userId'); ?>
        <?php echo $form->error($model,'userId'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'isVirgin'); ?>
        <?php echo $form->checkBox($model,'isVirgin'); ?>
        <?php echo $form->error($model,'isVirgin'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'companyName'); ?>
        <?php echo $form->textField($model,'companyName',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'companyName'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'companyLegalForm'); ?>
        <?php echo $form->textField($model,'companyLegalForm',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'companyLegalForm'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'companyGoal'); ?>
        <?php echo $form->textArea($model,'companyGoal',array('rows'=>6, 'cols'=>50)); ?>
        <?php echo $form->error($model,'companyGoal'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'addressLine1'); ?>
        <?php echo $form->textField($model,'addressLine1',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'addressLine1'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'addressLine2'); ?>
        <?php echo $form->textField($model,'addressLine2',array('size'=>0,'maxlength'=>0)); ?>
        <?php echo $form->error($model,'addressLine2'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'postCode'); ?>
        <?php echo $form->textField($model,'postCode',array('size'=>20,'maxlength'=>20)); ?>
        <?php echo $form->error($model,'postCode'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'town'); ?>
        <?php echo $form->textField($model,'town',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'town'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'country'); ?>
        <?php echo $form->textField($model,'country',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'country'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'companyPhoneNbr'); ?>
        <?php echo $form->textField($model,'companyPhoneNbr',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'companyPhoneNbr'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'companyFaxNbr'); ?>
        <?php echo $form->textField($model,'companyFaxNbr',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'companyFaxNbr'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'logoFileName'); ?>
        <?php echo $form->textField($model,'logoFileName',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'logoFileName'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'logoFileType'); ?>
        <?php echo $form->textField($model,'logoFileType',array('size'=>60,'maxlength'=>100)); ?>
        <?php echo $form->error($model,'logoFileType'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'logoFileSize'); ?>
        <?php echo $form->textField($model,'logoFileSize'); ?>
        <?php echo $form->error($model,'logoFileSize'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'logoFileContent'); ?>
        <?php echo $form->textField($model,'logoFileContent'); ?>
        <?php echo $form->error($model,'logoFileContent'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'taxNbr'); ?>
        <?php echo $form->textField($model,'taxNbr',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'taxNbr'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'vatNbr'); ?>
        <?php echo $form->textField($model,'vatNbr',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'vatNbr'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'bankAccountOwner'); ?>
        <?php echo $form->textField($model,'bankAccountOwner',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'bankAccountOwner'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'bankName'); ?>
        <?php echo $form->textField($model,'bankName',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'bankName'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'bankNbr'); ?>
        <?php echo $form->textField($model,'bankNbr',array('size'=>20,'maxlength'=>20)); ?>
        <?php echo $form->error($model,'bankNbr'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'bankAccountNbr'); ?>
        <?php echo $form->textField($model,'bankAccountNbr',array('size'=>20,'maxlength'=>20)); ?>
        <?php echo $form->error($model,'bankAccountNbr'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'currency'); ?>
        <?php echo $form->textField($model,'currency',array('size'=>3,'maxlength'=>3)); ?>
        <?php echo $form->error($model,'currency'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'invoiceNbrTemplate'); ?>
        <?php echo $form->textField($model,'invoiceNbrTemplate',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'invoiceNbrTemplate'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'termsOfPayment'); ?>
        <?php echo $form->textArea($model,'termsOfPayment',array('rows'=>6, 'cols'=>50)); ?>
        <?php echo $form->error($model,'termsOfPayment'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'receiptNbrTemplate'); ?>
        <?php echo $form->textField($model,'receiptNbrTemplate',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'receiptNbrTemplate'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'bankAccountTransactionProfile'); ?>
        <?php echo $form->textArea($model,'bankAccountTransactionProfile',array('rows'=>6, 'cols'=>50)); ?>
        <?php echo $form->error($model,'bankAccountTransactionProfile'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'accountFrame'); ?>
        <?php echo $form->textField($model,'accountFrame',array('size'=>20,'maxlength'=>20)); ?>
        <?php echo $form->error($model,'accountFrame'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'hourRate1Description'); ?>
        <?php echo $form->textField($model,'hourRate1Description',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'hourRate1Description'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'hourRate1Amount'); ?>
        <?php echo $form->textField($model,'hourRate1Amount',array('size'=>10,'maxlength'=>10)); ?>
        <?php echo $form->error($model,'hourRate1Amount'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'hourRate2Description'); ?>
        <?php echo $form->textField($model,'hourRate2Description',array('size'=>60,'maxlength'=>255)); ?>
        <?php echo $form->error($model,'hourRate2Description'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'hourRate2Amount'); ?>
        <?php echo $form->textField($model,'hourRate2Amount',array('size'=>10,'maxlength'=>10)); ?>
        <?php echo $form->error($model,'hourRate2Amount'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'vehicleField1Label'); ?>
        <?php echo $form->textField($model,'vehicleField1Label',array('size'=>50,'maxlength'=>50)); ?>
        <?php echo $form->error($model,'vehicleField1Label'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'vehicleField2Label'); ?>
        <?php echo $form->textField($model,'vehicleField2Label',array('size'=>50,'maxlength'=>50)); ?>
        <?php echo $form->error($model,'vehicleField2Label'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'vehicleField3Label'); ?>
        <?php echo $form->textField($model,'vehicleField3Label',array('size'=>50,'maxlength'=>50)); ?>
        <?php echo $form->error($model,'vehicleField3Label'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'vehicleField4Label'); ?>
        <?php echo $form->textField($model,'vehicleField4Label',array('size'=>50,'maxlength'=>50)); ?>
        <?php echo $form->error($model,'vehicleField4Label'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'vehicleField5Label'); ?>
        <?php echo $form->textField($model,'vehicleField5Label',array('size'=>50,'maxlength'=>50)); ?>
        <?php echo $form->error($model,'vehicleField5Label'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'reminderLevel1Note'); ?>
        <?php echo $form->textArea($model,'reminderLevel1Note',array('rows'=>6, 'cols'=>50)); ?>
        <?php echo $form->error($model,'reminderLevel1Note'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'reminderLevel1Fee'); ?>
        <?php echo $form->textField($model,'reminderLevel1Fee',array('size'=>10,'maxlength'=>10)); ?>
        <?php echo $form->error($model,'reminderLevel1Fee'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'reminderLevel2Note'); ?>
        <?php echo $form->textArea($model,'reminderLevel2Note',array('rows'=>6, 'cols'=>50)); ?>
        <?php echo $form->error($model,'reminderLevel2Note'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'reminderLevel2Fee'); ?>
        <?php echo $form->textField($model,'reminderLevel2Fee',array('size'=>10,'maxlength'=>10)); ?>
        <?php echo $form->error($model,'reminderLevel2Fee'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'reminderLevel3Note'); ?>
        <?php echo $form->textArea($model,'reminderLevel3Note',array('rows'=>6, 'cols'=>50)); ?>
        <?php echo $form->error($model,'reminderLevel3Note'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'reminderLevel3Fee'); ?>
        <?php echo $form->textField($model,'reminderLevel3Fee',array('size'=>10,'maxlength'=>10)); ?>
        <?php echo $form->error($model,'reminderLevel3Fee'); ?>
    </div>

    <div class="row buttons">
        <?php $this->widget( 'application.extensions.button.DDButton',
			array(
				'title'=>$model->isNewRecord?Yii::t('site','Create'):Yii::t('site','Save'),
				'linkTitle'=>$model->isNewRecord?Yii::t('site','Create this record'):Yii::t('site','Save this record'),
				'formID' => 'company-setting-form',
				'buttonType' => 'save'
		)); ?>
        <?php $this->widget( 'application.extensions.button.DDButton',
			array(
				'title'=>Yii::t('site','Reset'),
				'linkTitle'=>Yii::t('site','Reset the form data'),
				'formID' => 'company-setting-form',
				'buttonType' => 'reset',
				'confirm' => Yii::t('site','Really reset this form?')
		)); ?>
        <?php $this->widget( 'application.extensions.button.DDButton',
			array(
				'title'=>Yii::t('site','Cancel'),
				'linkTitle'=>Yii::t('site','Cancel editing, back to list'),
				'formID' => 'company-setting-form',
				'buttonType' => 'cancel',
				'confirm' => Yii::t('site','Really cancel editing this item?'),
				'url' => array('companysetting/admin','CompanySetting_page'=>$page)
		)); ?>
    </div>

<?php $this->endWidget(); ?>

</div><!-- form -->
